From: Marco Trevisan (TreviƱo) Date: Thu, 23 May 2019 04:12:56 +0000 (+0200) Subject: realmd: Set login format to null on start and update if invalid X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~169 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ea5aaa8ab2e386b59cd28f1266d4712194c97dcc;p=gnome-shell.git realmd: Set login format to null on start and update if invalid We were checking an undefined property but that would lead to a a warning. Instead we can consider the login format unset until is null, and in case update it. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700 --- diff --git a/js/gdm/realmd.js b/js/gdm/realmd.js index 913fdd3be..758496820 100644 --- a/js/gdm/realmd.js +++ b/js/gdm/realmd.js @@ -21,6 +21,7 @@ var Manager = class { '/org/freedesktop/realmd', this._reloadRealms.bind(this)); this._realms = {}; + this._loginFormat = null; this._signalId = this._aggregateProvider.connect('g-properties-changed', (proxy, properties) => { @@ -86,7 +87,7 @@ var Manager = class { } get loginFormat() { - if (this._loginFormat !== undefined) + if (this._loginFormat) return this._loginFormat; this._updateLoginFormat();